package com.xiaomazi.edu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-order",fallback = OrderClientImpl.class)
public interface OrderClient {
    @GetMapping("/eduorder/isBuyCourse/{courseId}/{memberId}")
    boolean isBuyCourse(@PathVariable String courseId, @PathVariable String memberId);
}
